package com.gmt.controller;

import com.gmt.utils.MetaspaceUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author John.zhang
 * @version Id: NonHeapController, v 1.0 2020/12/18 18:00 ZhiYong Exp $
 */

@RestController
public class NonHeapController {

    List<Class<?>> list=new ArrayList<Class<?>>();
    @GetMapping("/nonHeap")
    public String heap(){
        while(true){
            list.addAll(MetaspaceUtil.createClasses());
        }
    }

}
